<template>
  <div class="listBar">
    <slot></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
.listBar {
  background-color: #ffffff;
  padding: 0 33px;
  display: flex;
  line-height: 100px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  .list-bar-item {
    flex: auto;
    text-align: center;
    position: relative;
    span {
      display: inline-block;
      position: relative;
      i {
        position: absolute;
        top: 0;
        right: 0;
        box-sizing: border-box;
        min-width: 32px;
        padding: 0 6px;
        color: #fff;
        font-weight: 500;
        font-size: 24px;
        line-height: 28px;
        text-align: center;
        background-color: #ee0a24;
        border: 1px solid #fff;
        border-radius: 32px;
        transform: translate(85%,50%);
        transform-origin: 100%;
        font-style: normal;
      }
    }
  }
}
.active {
  span {
    color: #49a8f4;
  }
}
.active:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #49a8f4;
  left: 50%;
  transform: translate(-50%, 0);
  animation: Width 0.2s ease-out;
}
@keyframes Width {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
</style>
